#!/usr/bin/env python

# new in python 3
def drop_first_last_sum(arr):
    first, *middle, last = arr
    return sum(middle)

a = [4,2,1,10,40,5]
drop_sum=drop_first_last_sum(sorted(a))
print(drop_sum)

record = ('fuliang', 'fuliang@gmail.com', '85558888','8558887')
name, email, *phones = record
for phone in phones:
    print(phone)
